#include "StringResource.h"

#include <QObject>

namespace NewStringTable {
#define tr QObject::tr

QString strClean() {
  QString str = QString::fromStdWString(L"净价");
  return tr(str.toUtf8().data());
}

QString strFull() {
  QString str = QString::fromStdWString(L"全价");
  return tr(str.toUtf8().data());
}

QString strQuoteFlag(int i) {
  switch (i) {
    case 0: {
      return tr("OCO");
    }
    case 1: {
      return tr("需请示");
    }
    case 2: {
      return tr("OCO & 需请示");
    }
    case 3: {
      return tr("必须请示");
    }
    case 4: {
      return tr("OCO & 必须请示");
    }
    case 5: {
      return tr("打包");
    }
    case 6: {
      return tr("打包 & 需请示");
    }
    case 7: {
      return tr("打包 & 必须请示");
    }

    case 10: {
      return tr("OCO");
    }
    case 11: {
      return tr("*");
    }
    case 12: {
      return tr("OCO,*");
    }
    case 13: {
      return tr("**");
    }
    case 14: {
      return tr("OCO,**");
    }
    case 15: {
      return tr("打包");
    }
    case 16: {
      return tr("打包,*");
    }
    case 17: {
      return tr("打包,*");
    }
    default:
      break;
  }
  return tr("");
}

QString strYearMonthDay(qb::base::CTime& T) {
  /*"%1-%2-%3"  ==> "%3/%2/%1" by czp*/
  QString str = QString("%3/%2/%1")
                    .arg(T.GetYear(), 4, 10, QChar('0'))
                    .arg(T.GetMonth(), 2, 10, QChar('0'))
                    .arg(T.GetDay(), 2, 10, QChar('0'));
  return str;
}

QString strSuperBSMiniTips(int i) {
  switch (i) {
    case 0: {
      return tr("债券全称");
    }
    case 1: {
      return tr("债券类别");
    }
    case 2: {
      return tr("债券期限");
    }
    case 3: {
      return tr("含权类型");
    }
    case 4: {
      return tr("利率方式");
    }
    case 5: {
      return tr("基础利率名");
    }
    case 6: {
      return tr("发行量");
    }
    case 7: {
      return tr("票面利率");
    }
    case 8: {
      return tr("付息频率");
    }
    case 9: {
      return tr("是否城投");
    }
    default:
      break;
  }
  return tr("");
}

QString strSuperIsuTips(int i) {
  switch (i) {
    case 0: {
      return tr("发行主体");
    }
    case 1: {
      return tr("主体类型");
    }
    case 2: {
      return tr("一级行业");
    }
    case 3: {
      return tr("地区(省)");
    }
    case 4: {
      return tr("控股股东");
    }
    case 5: {
      return tr("控股比例");
    }
    case 6: {
      return tr("实际控制人");
    }
    default:
      break;
  }
  return tr("");
}

QString strSuperCal(int i) {
  switch (i) {
    case 0: {
      return tr("发行开始日");
    }
    case 1: {
      return tr("招标/建档日");
    }
    case 2: {
      return tr("起息日");
    }
    case 3: {
      return tr("缴款日");
    }
    case 4: {
      return tr("上市日");
    }
    case 5: {
      return tr("下次付息日");
    }
    case 6: {
      return tr("行权日");
    }
    case 7: {
      return tr("下市日");
    }
    case 8: {
      return tr("到期日");
    }
    default:
      break;
  }
  return tr("");
}

QString strBDCrmBondInfo(int i) {
  switch (i) {
    case 0: {
      return tr("债券全称");
    }
    case 1: {
      return tr("债券类别");
    }
    case 2: {
      return tr("债券期限");
    }
    case 3: {
      return tr("保护费率");
    }
    case 4: {
      return tr("计划创设额");
    }
    case 5: {
      return tr("预配售额");
    }
    case 6: {
      return tr("结算方式");
    }
    case 7: {
      return tr("信用事件");
    }
    case 8: {
      return tr("创设机构");
    }
    default:
      break;
  }
  return tr("");
}

QString strBDCrmBondIssuer(int i) {
  switch (i) {
    case 0: {
      return tr("参考实体");
    }
    case 1: {
      return tr("机构类型");
    }
    case 2: {
      return tr("一级行业");
    }
    case 3: {
      return tr("二级行业");
    }
    case 4: {
      return tr("地区(省)");
    }
    case 5: {
      return tr("实际控制人");
    }
    case 6: {
      return tr("参考债券");
    }
    case 7: {
      return tr("债券类别");
    }
    case 8: {
      return tr("债券期限");
    }
    case 9: {
      return tr("票面利率");
    }
    case 10: {
      return tr("发行量");
    }
    default:
      break;
  }
  return tr("");
}

QString strBDCrmBondCal(int i) {
  switch (i) {
    case 0: {
      return tr("簿记建档日");
    }
    case 1: {
      return tr("凭证登记日");
    }
    case 2: {
      return tr("上市日");
    }
    case 3: {
      return tr("下市日");
    }
      // case 4:{return tr(""), tr(""); break;
    case 4: {
      return tr("支付日");
    }
    case 5: {
      return tr("保护起始日");
    }
    case 6: {
      return tr("保护到期日");
    }
    default:
      break;
  }
  return tr("");
}

QString strDlgQuoteListHeadV2(int i) {
  switch (i) {
    case 0: {
      return tr("关注");
    }
    case 1: {
      return tr("经纪商");
    }
    case 2: {
      return tr("剩余期限");
    }
    case 3: {
      return tr("代码");
    }
    case 4: {
      return tr("简称/标签");
    }

    case 5: {
      return tr("成交");
    }
    case 6: {
      return tr("报买方");
    }

    case 7: {
      return tr("Vol.Bid");
    }
    case 8: {
      return tr("Bid参考全价");
    }
    case 9: {
      return tr("Bid参考净价");
    }
    case 10: {
      return tr("Bid");
    }
    case 11: {
      return tr("Ofr");
    }
    case 12: {
      return tr("Ofr参考净价");
    }
    case 13: {
      return tr("Ofr参考全价");
    }
    case 14: {
      return tr("Vol.Ofr");
    }
    case 15: {
      return tr("报卖方");
    }
    case 16: {
      return tr("时间");
    }

    case 17: {
      return tr("票面利率");
    }
    case 18: {
      return tr("利率方式");
    }
    case 19: {
      return tr("昨日中债估值");
    }
    case 20: {
      return tr("今日中债估值");
    }
    case 21: {
      return tr("成交-中债(BP)");
    }
    case 22: {
      return tr("中债净价");
    }
    case 23: {
      return tr("中债久期");
    }
    case 24: {
      return tr("主体评级");
    }
    case 25: {
      return tr("债项评级");
    }
    case 26: {
      return tr("中债隐含");
    }
    case 27: {
      return tr("中证隐含");
    }
    case 28: {
      return tr("中债资信");
    }
    case 29: {
      return tr("展望");
    }

    case 30: {
      return tr("中证估值");
    }
    case 31: {
      return tr("成交-中证(BP)");
    }

    case 32: {
      return tr("中证净价");
    }
    case 33: {
      return tr("质押比");
    }
    case 34: {
      return tr("含权类型");
    }

    case 35: {
      return tr("行权日");
    }
    case 36: {
      return tr("到期日");
    }
    case 37: {
      return tr("发行期限");
    }
    case 38: {
      return tr("中证-中债(BP)");
    }
    case 39: {
      return tr("跨市场");
    }
    case 40: {
      return tr("行业");
    }
    case 41: {
      return tr("评级机构");
    }

    case 42: {
      return tr("担保人");
    }
    case 43: {
      return tr("债券流动性评分");
    }
    case 44: {
      return tr("主体流动性评分");
    }
    case 45: {
      return tr("债券余额(亿)");
    }
    case 46: {
      return tr("发行量(亿)");
    }
    case 47: {
      return tr("发行");
    }
    case 48: {
      return tr("地方债类型");
    }
    case 49: {
      return tr("产品");
    }
    case 50: {
      return tr("发行人");
    }

    case 51: {
      return tr("bid-中债(BP)");
    }
    case 52: {
      return tr("中债-ofr(BP)");
    }
    case 53: {
      return tr("bid-中证(BP)");
    }
    case 54: {
      return tr("中证-ofr(BP)");
    }
    case 55: {
      return tr("AB推荐定价");
    }
    case 56: {
      return tr("最后更新");
    }

    default:
      break;
  }
  return tr("");
}

QString strEstRemark(int i) {
  switch (i) {
    case 0: {
      return tr("行权/到期");
    }
    case 1: {
      return tr("行权");
    }
    case 2: {
      return tr("到期");
    }
    case 3: {
      return tr("");
    }
    case 4: {
      return tr("/");
    }
    default:
      break;
  }
  return tr("");
}

QString strMarketTknWndListHead(int i) {
  switch (i) {
    case 0: {
      return tr("方向");
    }
    case 1: {
      return tr("经纪商");
    }
    case 2: {
      return tr("剩余期限");
    }
    case 3: {
      return tr("代码");
    }
    case 4: {
      return tr("简称");
    }
    case 5: {
      return tr("成交");
    }
    case 6: {
      return tr("票面利率");
    }
    case 7: {
      return tr("利率方式");
    }
    case 8: {
      return tr("昨日中债估值");
    }
    case 9: {
      return tr("今日中债估值");
    }
    case 10: {
      return tr("成交-中债(BP)");
    }
    case 11: {
      return tr("中债净价");
    }
    case 12: {
      return tr("中债久期");
    }
    case 13: {
      return tr("主体评级");
    }
    case 14: {
      return tr("债项评级");
    }
    case 15: {
      return tr("中债隐含");
    }
    case 16: {
      return tr("中证隐含");
    }
    case 17: {
      return tr("中债资信");
    }
    case 18: {
      return tr("展望");
    }
    case 19: {
      return tr("中证估值");
    }
    case 20: {
      return tr("成交-中证(BP)");
    }
    case 21: {
      return tr("中证净价");
    }
    case 22: {
      return tr("含权类型");
    }
    case 23: {
      return tr("行权日");
    }
    case 24: {
      return tr("到期日");
    }
    case 25: {
      return tr("发行期限");
    }
    case 26: {
      return tr("跨市场");
    }
    case 27: {
      return tr("行业");
    }
    case 28: {
      return tr("评级机构");
    }
    case 29: {
      return tr("担保人");
    }
    case 30: {
      return tr("债券余额(亿)");
    }
    case 31: {
      return tr("发行");
    }
    case 32: {
      return tr("地方债类型");
    }
    case 33: {
      return tr("产品");
    }
    case 34: {
      return tr("发行人");
    }

    case 35: {
      return tr("最后更新");
    }
    default:
      break;
  }
  return "";
}

QString strFilterProduct1(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("利率债", "Gov");
      break;
    case 2:
      return tr("信用债", "Credit");
      break;
    case 3:
      return tr("NCD", "NCD");
      break;
    default:
      return tr("产品", "Classification");
      break;
  }
  return "";
}

QString strFilterProduct2(int i) {
  switch (i) {
    case 0:
      return tr("国债", "T-Bond");
      break;
    case 1:
      return tr("国开", "CDB Bond");
      break;
    case 2:
      return tr("农发", "ADBC");
      break;
    case 3:
      return tr("口行", "Eximbank");
      break;
    case 4:
      return tr("地方债", "Municipal Bond");
      break;
    default:
      return tr("", "");
      break;
  }
  return "";
}

QString strFilterProduct3(int i) {
  switch (i) {
    case 0:
      return tr("短融", "CP/SCP");
      break;
    case 1:
      return tr("中票", "MTN");
      break;
    case 2:
      return tr("企业债", "Enterprise Bond");
      break;
    case 3:
      return tr("公司债", "Corporate Bond");
      break;
    case 4:
      return tr("商金债", "Financial Bond");
      break;
    default:
      return tr("", "");
      break;
  }
  return "";
}

QString strFilterProduct4(int i) {
  switch (i) {
    case 0:
      return tr("券商债", "Security Bond");
      break;
    case 1:
      return tr("保险债", "Insurance Bond");
      break;
    case 2:
      return tr("其他金融债", "Other Financial Bond");
      break;
    case 3:
      return tr("PPN", "PPN");
      break;
    case 4:
      return tr("ABS", "ABS");
      break;
    default:
      return tr("", "");
      break;
  }
  return "";
}

QString strFilterProduct5(int i) {
  switch (i) {
    case 0:
      return tr("可转债", "Convertible");
      break;
    case 1:
      return tr("铁道债", "Railway Bond");
      break;
    case 2:
      return tr("其他", "Others");
      break;
    case 3:
      return tr("NCD", "NCD");
      break;
    default:
      return tr("", "");
      break;
  }
  return "";
}

QString strFilterLocalBondArea(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("更多", "More");
      break;
    default:
      return tr("地方债地区", "LGB Area");
      break;
  }
  return "";
}

QString strFilterSubType(int i) {
  switch (i) {
    case 0:
      return tr("不限", "All");
      break;
    default:
      return tr("细分", "Classification");
      break;
  }
  return "";
}

QString strFilterLocalBond(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("一般债", "General Purpose");
      break;
    case 2:
      return tr("专项债", "Special Purpose");
      break;
    default:
      return tr("地方债", "Municipal Bond");
      break;
  }
  return "";
}

QString strFilterLocalBondSpecial(int i) {
  switch (i) {
    case 0:
      return tr("不限", "All");
      break;
    default:
      return tr("地方债专项", "Local Bond Special");
      break;
  }
  return "";
}

QString strFilterMuniArea(int i) {
  switch (i) {
    case 0:
      return tr("不限", "All");
      break;
    default:
      return tr("城投地区", "Muni Area Bond");
      break;
  }
  return "";
}

QString strFilterCommon(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("电力", "Electric Power");
      break;
    case 2:
      return tr("钢铁", "Steel");
      break;
    case 3:
      return tr("煤炭", "Coal");
      break;
    case 4:
      return tr("水泥", "Cement");
      break;
    case 5:
      return tr("房地产", "Real Estate");
      break;
    case 6:
      return tr("交运", "Transportation");
      break;
    case 7:
      return tr("城投", "Chengtou");
      break;
    case 8:
      return tr("铁道", "Railways");
      break;
    case 9:
      return tr("上市公司", "Listed Companies");
      break;
    case 10:
      return tr("绿色债", "Green Bond");
      break;
    case 11:
      return tr("碳中和", "Carbon Neutral");
      break;
    default:
      return tr("常用", "Sectors");
      break;
  }
  return "";
}

QString strFilterClearSpeed(int i) {
  switch (i) {
    case 0:
      return tr("不限", "All");
      break;
    case 1:
      return tr("T+0", "T+0");
      break;
    case 2:
      return tr("T+1", "T+1");
      break;
    case 3:
      return tr("远期", "FWD");
      break;
    case 4:
      return tr("非远期", "Spot");
      break;
    default:
      return tr("清算速度", "Settlement");
      break;
  }
  return "";
}

QString strQuoteType(int i) {
  switch (i) {
    case 0: {
      return tr("全部", "All");
      break;
    }
    case 1: {
      return tr("实盘价", "Executable");
      break;
    }
    case 2: {
      return tr("可部分执行", "Partial");
      break;
    }
    case 3: {
      return tr("意向价", "Indicative");
      break;
    }
    default: {
      return tr("报价类型", "QuoteType");
      break;
    }
  }
  return "";
}

QString strFilterETSBond(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("城投永续", "Municipal ETS");
      break;
    case 2:
      return tr("产业永续", "Industrial ETS");
      break;
    case 3:
      return tr("金融永续", "Financial ETS");
      break;
    case 4:
      return tr("非永续", "No");
      break;
    default:
      return tr("永续债", "Perpetual Bond");
      break;
  }
  return "";
}

QString strFilterCorp(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("央企", "Central State Enterprises");
      break;
    case 2:
      return tr("国企", "Local State Enterprises");
      break;
    case 3:
      return tr("民企", "Private Enterprises");
      break;
    case 4:
      return tr("其他", "Others");
      break;
    default:
      return tr("企业", "Owner Type");
      break;
  }
  return "";
}

QString strFilterInvest(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("城投", "Yes");
      break;
    case 2:
      return tr("非城投", "No");
      break;
    case 3:
      return tr("12重点省", "12 Key Provinces");
      break;
    case 4:
      return tr("非重点省", "Non-12 Key Provinces");
      break;
    default:
      return tr("城投", "Chengtou");
      break;
  }
  return "";
}

QString strFilterPformType(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("省级", "Provincial");
      break;
    case 2:
      return tr("市级", "Municipal");
      break;
    case 3:
      return tr("区县级", "County");
      break;
    case 4:
      return tr("其他", "Others");
      break;
    default:
      return tr("城投层级", "LGFV Type");
      break;
  }
  return "";
}

QString strFilterIssuerRating(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("AAA+", "AAA+");
      break;
    case 2:
      return tr("AAA", "AAA");
      break;
    case 3:
      return tr("AA+", "AA+");
      break;
    case 4:
      return tr("AA", "AA");
      break;
    case 5:
      return tr("更多", "More");
      break;
    case 6:
      return tr("AA-", "AA-");
      break;
    case 7:
      return tr("A+", "A+");
      break;
    case 8:
      return tr("其他", "Others");
      break;
    default:
      return tr("主体", "Issuer Rating");
      break;
  }
  return "";
}

QString strFilterCBRRating(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("AAA+", "AAA+");
      break;
    case 2:
      return tr("AAA", "AAA");
      break;
    case 3:
      return tr("AAA-", "AAA-");
      break;
    case 4:
      return tr("AA+", "AA+");
      break;
    case 5:
      return tr("更多", "More");
      break;
    case 6:
      return tr("AA", "AA");
      break;
    case 7:
      return tr("AA-", "AA-");
      break;
    case 8:
      return tr("A+", "A+");
      break;
    case 9:
      return tr("其他", "Others");
      break;
    case 10:
      return tr("无评级", "Others");
      break;
    default:
      return tr("中债资信", "CBR Rating");
      break;
  }
  return "";
}

QString strFilterBondRating(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("A-1", "A-1");
      break;
    case 2:
      return tr("AA+", "AA+");
      break;
    case 3:
      return tr("AA", "AA");
      break;
    case 4:
      return tr("AA-", "AA-");
      break;
    case 5:
      return tr("更多", "More");
      break;
    case 6:
      return tr("A+", "A+");
      break;
    case 7:
      return tr("其他", "Others");
      break;
    default:
      return tr("债项", "Bond Rating");
      break;
  }
  return "";
}

QString strFilterCDCRating(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("AAA+", "AAA+");
      break;
    case 2:
      return tr("AAA", "AAA");
      break;
    case 3:
      return tr("AAA-", "AAA-");
      break;
    case 4:
      return tr("AA+", "AA+");
      break;
    case 5:
      return tr("更多", "More");
      break;
    case 6:
      return tr("AA", "AA");
      break;
    case 7:
      return tr("AA(2)", "AA(2)");
      break;
    case 8:
      return tr("AA-", "AA-");
      break;
    case 9:
      return tr("其他", "Others");
      break;
    default:
      return tr("中债隐含", "CDC \r\nImplied Rating");
      break;
  }
  return "";
}

QString strFilterCSIRating(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("AAA+", "AAA+");
      break;
    case 2:
      return tr("AAA", "AAA");
      break;
    case 3:
      return tr("AA+", "AA+");
      break;
    case 4:
      return tr("AA", "AA");
      break;
    case 5:
      return tr("更多", "More");
      break;
    case 6:
      return tr("AA2", "AA2");
      break;
    case 7:
      return tr("AA-", "AA-");
      break;
    case 8:
      return tr("其他", "Others");
      break;
    default:
      return tr("中证隐含", "CSI \r\nImplied Rating");
      break;
  }
  return "";
}

QString strFilterOutlook(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("正面", "Positive");
      break;
    case 2:
      return tr("稳定", "Stable");
      break;
    case 3:
      return tr("观察", "Watch");
      break;
    case 4:
      return tr("负面", "Negative");
      break;
    default:
      return tr("展望", "Outlook");
      break;
  }
  return "";
}

QString strFilterBondAssure(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("有担保", "Secured");
      break;
    case 2:
      return tr("无担保", "UnSecured");
      break;
    default:
      return tr("担保", "Guarantee");
      break;
  }
  return "";
}

QString strFilterThirdPartGuarantee(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("全国性担保", "National");
      break;
    case 2:
      return tr("地方性担保", "Regional");
      break;
    default:
      return tr("三方担保", "Third-Party Guarantee");
      break;
  }
  return "";
}

QString strFilterBondNCD(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("国有", "Stated");
      break;
    case 2:
      return tr("股份", "Owned");
      break;
    case 3:
      return tr("AAA", "AAA");
      break;
    case 4:
      return tr("AA+", "AA+");
      break;
    case 5:
      return tr("更多", "More");
      break;
    case 6:
      return tr("AA", "AA");
      break;
    case 7:
      return tr("AA-及以下", "AA-");
      break;
    default:
      return "NCD";
      break;
  }
  return "";
}

QString strFilterAssetStatus(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("公募", "Public");
      break;
    case 2:
      return tr("小公募", "Qualified");
      break;
    case 3:
      return tr("私募", "Placement");
      break;
    default:
      return tr("发行", "Issue Type");
      break;
  }
  return "";
}

QString strFilterCouponType(int i) {
  switch (i) {
    case 0:
      return tr("", "All");
      break;
    case 1:
      return "";
      break;
    case 2:
      return "";
      break;
    case 3:
      return "";
      break;
    case 4:
      return tr("", "Fixed-rate");
      break;
    default:
      return tr("", "Coupon Type");
      break;
  }
  return "";
}

QString strFilterOptionType(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("不含权", "Plain Vanilla");
      break;
    case 2:
      return tr("赎回权", "Call");
      break;
    case 3:
      return tr("回售权", "Put");
      break;
    case 4:
      return tr("其他权", "Others");
      break;
    default:
      return tr("含权", "Optionality");
      break;
  }
  return "";
}

QString strFilterBondLiquidity(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return "S";
      break;
    case 2:
      return "A";
      break;
    case 3:
      return "B";
      break;
    case 4:
      return "C";
      break;
    case 5:
      return "D";
      break;
    default:
      return tr("债券流动性", "Bond Liquidity");
      break;
  }
  return "";
}

QString strFilterIssuerLiquidity(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return "S";
      break;
    case 2:
      return "A";
      break;
    case 3:
      return "B";
      break;
    case 4:
      return "C";
      break;
    case 5:
      return "D";
      break;
    default:
      return tr("主体流动性", "Issuer Liquidity");
      break;
  }
  return "";
}

QString strFilterGrade(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("城投", "Municipal");
      break;
    case 2:
      return tr("产业", "Industrial");
      break;
    case 3:
      return tr("其他", "Other High Yield");
      break;
    case 4:
      return tr("投资级", "Investment Grade");
      break;
    default:
      return tr("高收益债", "Grade");
      break;
  }
  return "";
}

QString strFilterPrincipayPayType(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("提前还本", "Amortizing");
      break;
    case 2:
      return tr("到期一次还本", "Non-Amortizing");
      break;
    default:
      return tr("偿还方式", "Prin. Pay Type");
      break;
  }
  return "";
}

QString strFilterSpecial(int i) {
  switch (i) {
    case 0:
      return tr("不限", "All");
      break;
    case 1:
      return tr("新上市", "New Issues");
      break;
    case 2:
      return tr("跨市场", "Multi-Venue");
      break;
    case 3:
      return tr("可质押", "Eligible Collateral");
      break;
    case 4:
      return tr("银行间", "Interbank Mkt");
      break;
    case 5:
      return tr("交易所", "Exchange Traded");
      break;
    case 6:
      return tr("不含假期", "Business Days Only");
      break;
    default:
      return tr("特殊", "Special");
      break;
  }
  return "";
}

QString strFilterSector(int i) {
  switch (i) {
    case 0:
      return tr("不限", "All");
      break;
    default:
      return tr("行业", "Sector");
      break;
  }
  return "";
}

QString strFilterArea(int i) {
  switch (i) {
    case 0:
      return tr("不限", "All");
      break;
    default:
      return tr("地区", "Region");
      break;
  }
  return "";
}

QString strFilterYear(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("更多", "More");
      break;
    default:
      return tr("发行年份", "Vintage Year");
      break;
  }
  return "";
}

QString strFilterTerm(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("<3M", "<3M");
      break;
    case 2:
      return tr("3-6M", "3-6M");
      break;
    case 3:
      return tr("6-9M", "6-9M");
      break;
    case 4:
      return tr("9-12M", "9-12M");
      break;
    case 5:
      return tr("1-3Y", "1-3Y");
      break;
    case 6:
      return tr("3-5Y", "3-5Y");
      break;
    case 7:
      return tr("5-7Y", "5-7Y");
      break;
    case 8:
      return tr("7-10Y", "7-10Y");
      break;
    case 9:
      return tr("10-15Y", "10-15Y");
      break;
    case 10:
      return tr("15-20Y", "15-20Y");
      break;
    case 11:
      return tr("20-30Y", "20-30Y");
      break;
    case 12:
      return tr("≥30Y", "≥30Y");
      break;
    default:
      return tr("期限", "Term to Mty");
      break;
  }
  return "";
}

QString strFilterHot1(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("银行二级", "Bank Tier-2 Bond");
      break;
    case 2:
      return tr("银行永续", "Bank Perpetual Bond");
      break;
    case 3:
      return tr("政策性次级债", "PolicyBankTier2");
      break;
    default:
      return tr("热门概念", "Popular Sector");
      break;
  }
  return "";
}

QString strFilterHot2(int i) {
  switch (i) {
    case 0:
      return tr("保险次级", "Insurance Subordinated Bond");
      break;
    case 1:
      return tr("可质押", "Eligible Collateral");
      break;
    case 2:
      return tr("跨市场", "Multi-Venue");
      break;
    case 3:
      return tr("城投", "Municipal");
      break;
    case 4:
      return tr("房地产", "RealEstate");
      break;
    default:
      return tr("", "");
      break;
  }
  return "";
}

QString strFilterHot3(int i) {
  switch (i) {
    case 0:
      return tr("产能过剩", "Overcapacity");
      break;
    case 1:
      return tr("公用事业", "Public Utility");
      break;
    case 2:
      return tr("上市公司", "ListedCompany");
      break;
    case 3:
      return tr("ESG", "ESG");
      break;
    default:
      return tr("", "");
      break;
  }
  return "";
}

QString strFilterHot4(int i) {
  switch (i) {
    case 0:
      return tr("小微企业", "Small-Micro Enterprises");
      break;
    case 1:
      return tr("科创债", "Tech-Innovation Bond");
      break;
    case 2:
      return tr("违约债", "Default Bond");
      break;
    case 3:
      return tr("熊猫债", "Panda Bond");
      break;
    case 4:
      return tr("TLAC债", "TLAC");
      break;
    default:
      return tr("", "");
      break;
  }
  return "";
}

QString strFilterHot5(int i) {
  switch (i) {
    case 0:
      return tr("新上市", "New Issues");
      break;
    case 1:
      return tr("不含假期", "ExpireInHoliday");
      break;
    default:
      return tr("", "");
      break;
  }
  return "";
}

QString strFilterBank(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("国有行", "State-owned Large Bank");
      break;
    case 2:
      return tr("股份制", "Joint-Stock Bank");
      break;
    case 3:
      return tr("城商行", "City Commercial Bank");
      break;
    case 4:
      return tr("农商行", "Rural Commercial Bank");
      break;
    case 5:
      return tr("其他", "Other Banks");
      break;
    default:
      return tr("银行业", "BankBond");
      break;
  }
  return "";
}

QString strFilterSubordinatedBond(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("次级", "Subordinated");
      break;
    case 2:
      return tr("非次级", "No Subordinated");
      break;
    default:
      return tr("次级债", "SubordinatedBond");
      break;
  }
  return "";
}

QString strFilterListedVenues(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("银行间", "Interbank");
      break;
    case 2:
      return tr("上交所", "SSE");
      break;
    case 3:
      return tr("深交所", "SZE");
      break;
    case 4:
      return tr("北交所", "BSE");
      break;
    default:
      return tr("上市场所", "Listed Venues");
      break;
  }
  return "";
}

QString strFilterParValue(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("SHIBOR", "SHIBOR");
      break;
    case 2:
      return tr("DEPO", "DEPO");
      break;
    case 3:
      return tr("LPR", "LPR");
      break;
    case 4:
      return tr("固息", "Fixed-rate");
      break;
    default:
      return tr("利率方式", "Rate Type");
      break;
  }
  return "";
}

QString strFilterMarketMakeTarget(int i) {
  switch (i) {
    case 0:
      return tr("全部", "All");
      break;
    case 1:
      return tr("上证利率", "SSE Rate");
      break;
    case 2:
      return tr("上证信用", "SSE Credit");
      break;
    case 3:
      return tr("深证利率", "SZE Rate");
      break;
    case 4:
      return tr("深证信用", "SZE Credit");
      break;
    default:
      return tr("做市标的", "Market Making Bond");
      break;
  }
  return "";
}

QString strBondDealGovHead(int i) {
  switch (i) {
    case 1:
      return "1Y";
      break;
    case 2:
      return "2Y";
      break;
    case 3:
      return "3Y";
      break;
    case 4:
      return "5Y";
      break;
    case 5:
      return "7Y";
      break;
    case 6:
      return "10Y";
      break;
    case 7:
      return "15Y";
      break;
    case 8:
      return "20Y";
      break;
    case 9:
      return "30Y";
      break;
    case 10:
      return "50Y";
      break;
    case 11:
      return tr("超长", "≥10Y");
      break;
    default:
      break;
  }
  return "";
}

QString strBondDealGovType(int i) {
  switch (i) {
    case 1:
      return tr("国债", "Treasuries");
      break;
    case 2:
      return tr("国开", "CDB Bond");
      break;
    case 3:
      return tr("口行", "Eximbank Bond");
      break;
    case 4:
      return tr("农发", "ADBC Bond");
      break;
    case 5:
      return tr("非国开", "Other Policy Bond");
      break;
    case 6:
      return tr("地方", "Municipal Bond");
      break;
    default:
      break;
  }
  return "";
}

QString strBondDealCreditHead(int i) {
  switch (i) {
    case 1:
      return "1M";
      break;
    case 2:
      return "3M";
      break;
    case 3:
      return "6M";
      break;
    case 4:
      return "1Y";
      break;
    case 5:
      return "2Y";
      break;
    case 6:
      return "3Y";
      break;
    case 7:
      return "4Y";
      break;
    case 8:
      return "5Y";
      break;
    case 9:
      return "7Y";
      break;
    case 10:
      return "10Y";
      break;
    default:
      break;
  }
  return "";
}

QString strBondDealCreditRate(int i) {
  switch (i) {
    case 1:
      return "AAA+";
      break;
    case 2:
      return "AAA";
      break;
    case 3:
      return "AA+";
      break;
    case 4:
      return "AA";
      break;
    case 5:
      return "AA-";
      break;
    case 6:
      return "≤AA";
      break;
    default:
      break;
  }
  return "";
}

QString strBondDealNCDHead(int i) {
  switch (i) {
    case 1:
      return tr("临到期", "＜15D");
      break;
    case 2:
      return "1M";
      break;
    case 3:
      return "2M";
      break;
    case 4:
      return "3M";
      break;
    case 5:
      return "6M";
      break;
    case 6:
      return "9M";
      break;
    case 7:
      return "1Y";
      break;
    default:
      break;
  }
  return "";
}

QString strBondDealNCDRate(int i) {
  switch (i) {
    case 1:
      return "AAA+";
      break;
    case 2:
      return "AAA";
      break;
    case 3:
      return "AA+";
      break;
    case 4:
      return "AA";
      break;
    case 5:
      return "AA-";
      break;
    case 6:
      return "≤AA-";
      break;
    default:
      break;
  }
  return "";
}

QString strBondDealTips(int i) {
  switch (i) {
    case 0:
      return "中债估值";
      break;
    case 1:
      return "昨日收盘";
      break;
    case 2:
      return "今日共成交";
      break;
    case 3:
      return "笔";
      break;
    default:
      break;
  }
  return "";
}

///////////////////////////////////////////////////////////////////////////////////
// 最优报价
QString strDlgQuote(int i) {
  switch (i) {
    case 0:
      return tr("最优报价", "Optimal Quotes");
      break;
    case 1:
      return tr("Bid", "Bid");
      break;
    case 2:
      return tr("Ofr", "Ofr");
      break;
    case 3:
      return tr("产品", "Classification");
      break;
    case 4:
      return tr("城投", "Chengtou");
      break;
    case 5:
      return tr("期限", "Term to Mty");
      break;
    case 6:
      return tr("主体", "Issuer Rating");
      break;
    case 7:
      return tr("担保", "Guarantee");
      break;
    case 8:
      return tr("特殊", "Special");
      break;
    case 9:
      return tr("含权", "Optionality");
      break;
    case 10:
      return tr("企业", "Owner Type");
      break;
    case 11:
      return tr("全部", "All");
      break;
    case 12:
      return tr("双边", "Bid-Ofr");
      break;
    case 13:
      return tr("新上市", "Newly-listed");
      break;
    case 14:
      return tr("有效报价", "Effective Quotes");
      break;
    case 15:
      return tr("新发债", "Newly-issued");
      break;
    case 16:
      return tr("跨市场", "Cross-market");
      break;
    case 17:
      return tr("可质押", "Pledgeable");
      break;
    case 18:
      return tr("利率方式", "Rate Type");
      break;
    case 19:
      return tr("不限", "All");
      break;
    case 20:
      return tr("方案", "My Filter");
      break;
    case 21:
      return tr("债券", "Bond");
      break;
    case 22:
      return tr("发行人", "Issuer");
      break;
    case 23:
      return tr("债项", "Bond Rating");
      break;
    case 24:
      return tr("金融债", "Policy Bond");
      break;
    case 25:
      return tr("行业", "Sector");
      break;
    case 26:
      return tr("地区", "Region");
      break;
    case 27:
      return tr("其他条件", "Others");
      break;
    case 28:
      return tr("高级筛选", "Advanced");
      break;
    case 29:
      return tr("银行间", "Interbank");
      break;
    case 30:
      return tr("交易所", "Exchange");
      break;
    case 31:
      return tr("估值：", "Valuation");
      break;
    case 32:
      return tr("发行年份", "Vintage Year");
      break;
    case 33:
      return tr("细分", "Classification");
      break;
    case 34:
      return tr("常用", "Sectors");
      break;
    case 35:
      return tr("永续债", "Perpetual Bond");
      break;
    case 36:
      return tr("公司债", "CorpBond");
      break;
    case 37:
      return tr("|bid-中债|", "|Bid-CDC|");
      break;
    case 38:
      return tr("|中债-ofr|", "|CDC-Ofr|");
      break;
    case 39:
      return tr("不含假期", "Workday");
      break;
    case 40:
      return tr("城投层级", "LGFV Type");
      break;
    case 41:
      return tr("地方债", "Municipal Bond");
      break;
    case 42:
      return tr("发行", "Issue Type");
      break;
    case 43:
      return tr("SHOW ALL", "SHOW ALL");
      break;
    case 44:
      return tr("成交类型", "Deal-Type");
      break;
    case 45:
      return tr("跨市场", "Cross-market");
      break;
    case 46:
      return tr("中债隐含", "CDC Implied Rating");
      break;
    case 47:
      return tr("中证隐含", "CSI Implied Rating");
      break;
    case 48:
      return tr("中债资信", "CBR Rating");
      break;
    case 49:
      return tr("展望", "Outlook");
      break;
    case 50:
      return tr("NCD", "NCD");
      break;
    case 51:
      return tr("清算速度", "Settlement");
      break;
    case 52:
      return tr("单券流动性", "Bond Liquidity");
      break;
    case 53:
      return tr("主体流动性", "Issuer Liquidity");
      break;
    case 54:
      return tr("担保人", "Guarantor");
      break;
    case 55:
      return tr("报价", "Best Bid Ofr");
      break;
    case 56:
      return tr("高收益债", "Grade");
      break;
    case 57:
      return tr("偿还方式", "Prin. Pay Type");
      break;
    case 59:
      return tr("Bid-Ofr", "Bid-Ofr");
      break;
    case 60:
      return tr("票面利率", "Coupon");
      break;
    case 61:
      return tr("中债估值", "CDC Value");
      break;
    case 62:
      return tr("城投地区", "Muni Area Bond");
      break;
    case 63:
      return tr("主体", "Attention Issuer");
      break;
    case 64:
      return tr("最优", "Best");
      break;
    case 65:
      return tr("黑名单", "BlackListName");
      break;
    case 66:
      return tr("次级债", "SubordinatedBond");
      break;
    case 67:
      return tr("银行业", "BankBond");
      break;
    case 68:
      return tr("Ofr-Bid", "Ofr-Bid");
      break;
    case 69:
      return tr("中债-bid", "cdc-bid");
      break;
    case 70:
      return tr("ofr-中债", "ofr-cdc");
      break;
    case 71:
      return tr("上市场所", "Listed Venues");
      break;
    case 72:
      return tr("做市标的", "Market Making Bond");
      break;
    case 75:
      return tr("地方债地区", "LGB Area");
      break;
    case 76:
      return tr("三方担保", "Third-Party Guarantee");
      break;
    case 77:
      return tr("地方债专项", "LocalBond Special Fund");
      break;
    case 78:
      return tr("报价类型", "Quote Type");
      break;
    case 79:
      return tr("清算速度", "Settlement Speed");
      break;
    case 80:
      return tr("元", "YUAN");
      break;
    case 901:
      return tr("成交价：取每家经纪商的最新成交价",
                "Trade Price: Last transaction price via broker.");
      break;
    case 902: {
      return tr(
          "旨在提供日内实时的二级可交易价格参考。\r\n\
算法综合了实时主体收益率曲线、同债券或\r\n\
同主体或相似主体的成交/优质对价等因素。",
          "");
    } break;
    case 903:
      return tr("特殊标签设置及详解，请点击右侧设置", "");
      break;
    default:
      break;
  }
  return tr("");
}

QString SequenceSaveName(int index, bool inList) {
  enum col  // 这种拷贝可能出现乱序问题，但也比魔法数字好
  {
    colMty,
    colTicker,
    colName,
    colBidOfr,
    colVolBidOfr,
    colRating,
    colPledge,
    colTrade,
    colClose,
    colTradeClose,
    colIssuer,
    colGuarantor,
    colIssueScale,
    colAmount,
    colMunicipalBondType,
    colRegion,
    colIssueMethod,
    colCdc,
    colCdcDuration,
    colCdcRating,
    colCsi,
    colCouponRate,
    colMuturityDate,
    colBroker,
    colTime,
    colDate,
    colTradeCdc,
    colBidCdc,
    colCdcOfr,
    colMax

  };

  if (inList) {
    // 通过将一些行的名字置空隐藏行
    switch (index) {
      case colMty: {
        return "剩余期限";
        break;
      }
      case colTicker: {
        return "债券代码";
        break;
      }
      case colName: {
        return "债券简称";
        break;
      }
      case colBidOfr: {
        return "Bid/Ofr";
        break;
      }
      case colVolBidOfr: {
        return "Vol.Bid/Vol.Ofr";
        break;
      }
      case colRating: {
        return "主体/债项评级";
        break;
      }
      case colPledge: {
        return "质押比";
        break;
      }
      case colTrade: {
        return "成交价";
        break;
      }
      case colClose: {
        return "";
        break;
      }  //{return "昨收"), "Prev. Close")); break; }
      case colTradeClose: {
        return "";
        break;
      }  // {return "成交-昨收(bp)"), "Trade-Close(bp)")); break; }
      case colIssuer: {
        return "发行人";
        break;
      }
      case colGuarantor: {
        return "担保人";
        break;
      }
      case colIssueScale: {
        return "发行规模(亿)";
        break;
      }
      case colAmount: {
        return "债券余额(亿)";
        break;
      }
      case colMunicipalBondType: {
        return "地方债类型";
        break;
      }
      case colRegion: {
        return "地区";
        break;
      }
      case colIssueMethod: {
        return "发行方式";
        break;
      }
      case colCdc: {
        return "昨日中债估值";
        break;
      }
      case colCdcDuration: {
        return "中债久期";
        break;
      }
      case colCdcRating: {
        return "中债隐含评级";
        break;
      }
      case colCsi: {
        return "中证估值";
        break;
      }
      case colCouponRate: {
        return "票面利率";
        break;
      }
      case colMuturityDate: {
        return "到期日";
        break;
      }
      case colBroker: {
        return "经纪商";
        break;
      }
      case colTime: {
        return "最后更新时间";
        break;
      }
      case colDate: {
        return "日期";
        break;
      }
      case colTradeCdc: {
        return "成交-中债(bp)";
        break;
      }
      case colBidCdc: {
        return "bid-中债(bp)";
        break;
      }
      case colCdcOfr: {
        return "中债-Ofr(bp)";
        break;
      }
      default:
        break;
    }
  } else {
    switch (index) {
      case colMty: {
        return "";
        break;
      }
      case colTicker: {
        return "";
        break;
      }
      case colName: {
        return "";
        break;
      }
      case colBidOfr: {
        return "";
        break;
      }
      case colVolBidOfr: {
        return "";
        break;
      }
      case colRating: {
        return "";
        break;
      }
      case colPledge: {
        return "质押比";
        break;
      }
      case colTrade: {
        return "成交";
        break;
      }
      case colClose: {
        return "昨收";
        break;
      }
      case colTradeClose: {
        return "成交-昨收(bp)";
        break;
      }
      case colIssuer: {
        return "发行人";
        break;
      }
      case colGuarantor: {
        return "担保人";
        break;
      }
      case colIssueScale: {
        return "发行规模";
        break;
      }
      case colAmount: {
        return "债券余额";
        break;
      }
      case colMunicipalBondType: {
        return "";
        break;
      }
      case colRegion: {
        return "";
        break;
      }
      case colIssueMethod: {
        return "";
        break;
      }
      case colCdc: {
        return "昨日中债";
        break;
      }
      case colCdcDuration: {
        return "中债久期";
        break;
      }
      case colCdcRating: {
        return "中债隐含";
        break;
      }
      case colCsi: {
        return "中证估值";
        break;
      }
      case colCouponRate: {
        return "票面利率";
        break;
      }
      case colMuturityDate: {
        return "到期日";
        break;
      }
      case colBroker: {
        return "";
        break;
      }
      case colTime: {
        return "";
        break;
      }
      case colDate: {
        return "";
        break;
      }
      case colTradeCdc: {
        return "成交-中债(bp)";
        break;
      }
      case colBidCdc: {
        return "bid-中债(bp)";
        break;
      }
      case colCdcOfr: {
        return "中债-ofr(bp)";
        break;
      }
      default:
        break;
    }
  }

  return "";
}

}  // namespace NewStringTable
